﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CMMParameterManage.aspx.cs" Inherits="FileConverter.Bas.CMMParameterManage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    位置从0开始数起，值位置默认为6，不为6请赋值<br/>
    参数名称：<asp:TextBox ID="tb_ParameterName" runat="server" />
     &nbsp;&nbsp;&nbsp;&nbsp; 
    是否生效：<asp:DropDownList ID="ddl_isEnable" runat="server">
        <asp:ListItem Value="1">是</asp:ListItem>
        <asp:ListItem Value="0">否</asp:ListItem>
         </asp:DropDownList><br/>
    参数位置：<asp:TextBox ID="paramSeq" runat="server"  Width="100px" ></asp:TextBox> &nbsp;&nbsp;&nbsp; 
    值位置:<asp:TextBox ID="valueSeq" runat="server"  Width="100px" ></asp:TextBox>
    <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click"  />
    <asp:Button ID="bt_Save" runat="server" Text="新增" OnClick="bt_Save_Click"/>
    <br/>
    <asp:Label ID="lblInfo" runat="server" Text="信息提示" Font-Size="Large" ForeColor="#FF0066"></asp:Label>
    <div style="margin-left:auto;margin-right:auto">
        <asp:GridView ID="GV_CMMParam" runat="server" AutoGenerateColumns="False" PageSize ="15" AllowPaging="True" 
            OnPageIndexChanging="GV_CMMParam_PageIndexChanging" OnRowDeleting="GV_CMMParam_RowDeleting" 
            OnSelectedIndexChanging="GV_CMMParam_SelectedIndexChanging" OnRowUpdating="GV_CMMParam_RowUpdating" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCancelingEdit="GV_CMMParam_RowCancelingEdit" OnRowEditing="GV_CMMParam_RowEditing" OnRowDataBound="GV_CMMParam_RowDataBound" DataKeyNames="id">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:CommandField  ShowSelectButton="False" ShowEditButton="True" ShowDeleteButton="True"/>
                <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="true" />
             <asp:BoundField DataField="ParameterName" HeaderText="参数名称" ReadOnly="true" />
                <asp:TemplateField HeaderText="是否生效">
                    <EditItemTemplate>
                        <asp:Label ID="L_isEnable" runat="server" Text='<%# Eval("isEnable") %>' Visible="false"></asp:Label>
                         <asp:DropDownList ID="ddl_isEnable" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_isEnable_SelectedIndexChanged">
                            <asp:ListItem Value="1">是</asp:ListItem>
                            <asp:ListItem Value="0">否</asp:ListItem>
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("isEnable") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:BoundField DataField="paramSeq" HeaderText="参数位置" />
                <asp:BoundField DataField="valueSeq" HeaderText="值位置" />
             </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </div>
</asp:Content>
